﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kortex.Communication_objs
{


    #region General Kortex Get req
    public class Params_GeneralGet_req
    {
        #region Constructors
        public Params_GeneralGet_req()
        {
            addr = 0;
        }
        public Params_GeneralGet_req(int ar)
        {
            addr = ar;
        }
        public Params_GeneralGet_req(Params_GeneralGet_req obj)
        {
            addr = obj.addr;
        }
        #endregion
        
        public int addr { get; set; }
    }

    public class General_getobj_req
    {
        #region Constructors
        public General_getobj_req(string n_method,string jsonver,int nid,Params_GeneralGet_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_GeneralGet_req(parm);
            
        }

        public General_getobj_req(string n_method, string jsonver, int nid,int adr )
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_GeneralGet_req(adr);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_GeneralGet_req @params { get; set; }
        public int id { get; set; }
    }
    #endregion


    #region General Mercury Get req
    public class Params_GeneralMerucryGet_req
    {
        #region Constructors
        public Params_GeneralMerucryGet_req()
        {
            addr = 0;
        }
        public Params_GeneralMerucryGet_req(int ar)
        {
            addr = ar;
        }
        public Params_GeneralMerucryGet_req(Params_GeneralMerucryGet_req obj)
        {
            addr = obj.addr;
        }
        #endregion

        public int addr { get; set; }
    }

    public class General_Mercurygetobj_req
    {
        #region Constructors
        public General_Mercurygetobj_req(string n_method, string jsonver, int nid, Params_GeneralMerucryGet_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
          //  @params = new Params_GeneralMerucryGet_req(parm);

        }

        public General_Mercurygetobj_req(string n_method, string jsonver, int nid, int adr)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
           // @params = new Params_GeneralMerucryGet_req(adr);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        //public Params_GeneralMerucryGet_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }
    #endregion

    #region Get Input channel Timing
    public class Params_GetInput_channel_timing_obj_req
    {
        #region Constructors
        public Params_GetInput_channel_timing_obj_req()
        {
            input_channel = "scm0";
        }
        public Params_GetInput_channel_timing_obj_req(string  channel)
        {
            input_channel = channel;
        }
        public Params_GetInput_channel_timing_obj_req(Params_GetInput_channel_timing_obj_req obj)
        {
            input_channel = obj.input_channel;
        }
        #endregion

        public string input_channel { get; set; }
    }

    public class GetInput_channel_timing_obj_req
    {
        #region Constructors
        public GetInput_channel_timing_obj_req(string n_method, string jsonver, int nid, Params_GetInput_channel_timing_obj_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            //  @params = new Params_GeneralMerucryGet_req(parm);

        }

        public GetInput_channel_timing_obj_req(string n_method, string jsonver, int nid, string channel)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_GetInput_channel_timing_obj_req(channel);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_GetInput_channel_timing_obj_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }
    #endregion

    #region Get Input channel Timing
    public class Params_GetLogMessages_obj_req
    {
        #region Constructors
        public Params_GetLogMessages_obj_req()
        {
            line = "1";
        }
        public Params_GetLogMessages_obj_req(string line_p)
        {
            line = line_p;
        }
        public Params_GetLogMessages_obj_req(Params_GetLogMessages_obj_req obj)
        {
            line = obj.line;
        }
        #endregion

        public string line { get; set; }
    }

    public class GetLogMessages_obj_req
    {
        #region Constructors
        public GetLogMessages_obj_req(string n_method, string jsonver, int nid, Params_GetInput_channel_timing_obj_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            //  @params = new Params_GeneralMerucryGet_req(parm);

        }

        public GetLogMessages_obj_req(string n_method, string jsonver, int nid, string Line)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_GetLogMessages_obj_req(Line);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_GetLogMessages_obj_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }
    #endregion

    #region General Fmw verison Get
    public class Params_General_Fmw_vertion_getobj_req
    {
        #region Constructors
        public Params_General_Fmw_vertion_getobj_req()
        {
            addr = 0;
        }
        public Params_General_Fmw_vertion_getobj_req(int ar)
        {
            addr = ar;
        }
        public Params_General_Fmw_vertion_getobj_req(Params_General_Fmw_vertion_getobj_req obj)
        {
            addr = obj.addr;
        }
        #endregion

        public int addr { get; set; }
    }

    public class General_Fmw_vertion_getobj_req
    {
        #region Constructors
        public General_Fmw_vertion_getobj_req(string n_method, string jsonver, int nid, Params_GeneralMerucryGet_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
              @params = new Params_GeneralMerucryGet_req(parm);

        }

        public General_Fmw_vertion_getobj_req(string n_method, string jsonver, int nid, int adr)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
             @params = new Params_GeneralMerucryGet_req(adr);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_GeneralMerucryGet_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }
    #endregion


    #region Get Fan Speed 
    public class Params_FanSpeedGet_req
    {
        #region Constructors
        public Params_FanSpeedGet_req()
        {
            fan = "fan1";
        }
        public Params_FanSpeedGet_req(string  fanType)
        {
            fan = fanType;
        }
        public Params_FanSpeedGet_req(Params_FanSpeedGet_req obj)
        {
            fan = obj.fan;
        }
        #endregion

       // public int addr { get; set; }
        public string fan = "fan1";
    }

    public class GetFanSpeed_req
    {
        #region Constructors
        public GetFanSpeed_req(string n_method, string jsonver, int nid, Params_FanSpeedGet_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
              @params = new Params_FanSpeedGet_req(parm);

        }

        public GetFanSpeed_req(string n_method, string jsonver, int nid, string  fntype)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_FanSpeedGet_req(fntype);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_FanSpeedGet_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }
    #endregion

    #region Set Network IF

    public class Params_SetNetIFobj_req_req
    {
        #region Constructors
        public Params_SetNetIFobj_req_req()
        {
            @interface = "eth0";
            addressing = "dhcp";
        }

        public Params_SetNetIFobj_req_req(string eth, string addressing_p, string ip_p, string netmask_p)
        {
            @interface = eth;
            addressing = addressing_p;
            ip = ip_p;
            netmask = netmask_p;
        }

        public Params_SetNetIFobj_req_req(Params_SetNetIFobj_req_req obj)
        {
            @interface = obj.@interface;
            addressing = obj.addressing;
        }

        #endregion

        public string @interface { get; set; }
        public string addressing { get; set; }
        public string ip { get; set; }
        public string netmask { get; set; }
        
        
    }


    public class SetNetIFobj_req
    {

        #region
        public SetNetIFobj_req(string n_method, string jsonver, int nid, Params_SetNetIFobj_req_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_SetNetIFobj_req_req(prm);

        }


        public SetNetIFobj_req(string n_method, string jsonver, int nid, string eth, string addressing_p, string ip_p, string netmask_p)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_SetNetIFobj_req_req(eth, addressing_p, ip_p, netmask_p);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_SetNetIFobj_req_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    #region Get Mac Adress


    public class Params_MacAddressGet_req
    {
        #region Constructors
        public Params_MacAddressGet_req()
        {
            @interface = "eth0";
        }
        public Params_MacAddressGet_req(string eth)
        {
            @interface = eth;
        }
        public Params_MacAddressGet_req(Params_MacAddressGet_req obj)
        {
            @interface = obj.@interface;
        }
        #endregion

        // public int addr { get; set; }
        public string @interface = "eth0";
    }



    public class GetMacAddress_req
    {
        #region Constructors
        public GetMacAddress_req(string n_method, string jsonver, int nid, Params_MacAddressGet_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_MacAddressGet_req(parm);

        }

        public GetMacAddress_req(string n_method, string jsonver, int nid, string eth)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_MacAddressGet_req(eth);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_MacAddressGet_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }

   
    

    #endregion


    #region Set Mac Address

    public class Params_SetMacAddressobj_req
    {
        #region Constructors
        public Params_SetMacAddressobj_req()
        {
            @interface = "eth0";
            macaddr = "84:7E:40:E4:12:C8";
        }

        public Params_SetMacAddressobj_req(string eth, string mac)
        {
            @interface = eth;
            macaddr = mac;
        }

        public Params_SetMacAddressobj_req(Params_SetMacAddressobj_req obj)
        {
            @interface = obj.@interface;
            macaddr = obj.macaddr;
        }

        #endregion

        public string @interface { get; set; }
        public string macaddr { get; set; }
    }

    
    public class SetMacAddressobj_req
    {

        #region
        public SetMacAddressobj_req(string n_method, string jsonver, int nid, Params_SetMacAddressobj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_SetMacAddressobj_req(prm);

        }


        public SetMacAddressobj_req(string n_method, string jsonver, int nid, string eth, string mac)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_SetMacAddressobj_req(eth, mac);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_SetMacAddressobj_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    #region Get Module Version


    public class Params_GetModuleVersion_req
    {
        #region Constructors
        public Params_GetModuleVersion_req()
        {
            module = "MrcFpga";
        }
        public Params_GetModuleVersion_req( string module_type)
        {
            module = module_type;
            
        }
        public Params_GetModuleVersion_req(Params_GetModuleVersion_req obj)
        {
            module = obj.module;
            
        }
        #endregion

        // public int addr { get; set; }
        public string module = "MrcFpga";
        

    }



    public class GetModuleVersion_req
    {
        #region Constructors
        public GetModuleVersion_req(string n_method, string jsonver, int nid, Params_GetModuleVersion_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_GetModuleVersion_req(parm);

        }

        public GetModuleVersion_req(string n_method, string jsonver, int nid, string module_type)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_GetModuleVersion_req( module_type);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_GetModuleVersion_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }





    #endregion



    #region Get  SCM Startus


    public class Params_Get_ScmStatus_req
    {
        #region Constructors
        public Params_Get_ScmStatus_req()
        {
            input_channel = "scm0";
        }
        public Params_Get_ScmStatus_req(string input__ch_type)
        {
            input_channel = input__ch_type;

        }
        public Params_Get_ScmStatus_req(Params_Get_ScmStatus_req obj)
        {
            input_channel = obj.input_channel;

        }
        #endregion

        // public int addr { get; set; }
        public string input_channel = string.Empty;


    }



    public class Get_ScmStatus_req
    {
        #region Constructors
        public Get_ScmStatus_req(string n_method, string jsonver, int nid, Params_Get_ScmStatus_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_Get_ScmStatus_req(parm);

        }

        public Get_ScmStatus_req(string n_method, string jsonver, int nid, string input_ch_type)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_Get_ScmStatus_req(input_ch_type);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_Get_ScmStatus_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }





    #endregion

    #region Get  Optical dvi


    public class Params_GetOpticalDvi_req
    {
        #region Constructors
        public Params_GetOpticalDvi_req()
        {
            input = "dvi1";
        }
        public Params_GetOpticalDvi_req(string input_type)
        {
            input = input_type;

        }
        public Params_GetOpticalDvi_req(Params_GetOpticalDvi_req obj)
        {
            input = obj.input;

        }
        #endregion

        // public int addr { get; set; }
        public string input = "dvi1";


    }



    public class GetOpticalDvi_req
    {
        #region Constructors
        public GetOpticalDvi_req(string n_method, string jsonver, int nid, Params_GetOpticalDvi_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_GetOpticalDvi_req(parm);

        }

        public GetOpticalDvi_req(string n_method, string jsonver, int nid, string input_type)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_GetOpticalDvi_req(input_type);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_GetOpticalDvi_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }





    #endregion

    #region Set  Video Bypass


    public class Params_SetVideoBypass_req
    {
        #region Constructors
        public Params_SetVideoBypass_req()
        {
            input = "dvi1";
        }
        public Params_SetVideoBypass_req(string input_type, string status_p)
        {
            input = input_type;
            cmd = status_p;

        }
        public Params_SetVideoBypass_req(Params_SetVideoBypass_req obj)
        {
            input = obj.input;

        }
        #endregion

        // public int addr { get; set; }
        public string input = "dvi1";
        public string cmd = "disble";



    }



    public class SetVideoBypass_req
    {
        #region Constructors
        public SetVideoBypass_req(string n_method, string jsonver, int nid, Params_SetVideoBypass_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_SetVideoBypass_req(parm);

        }

        public SetVideoBypass_req(string n_method, string jsonver, int nid, string input_type, string command)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_SetVideoBypass_req(input_type, command);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_SetVideoBypass_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }





    #endregion

    #region Set  Optical dvi


    public class Params_SetOpticalDvi_req
    {
        #region Constructors
        public Params_SetOpticalDvi_req()
        {
            input = "dvi1";
        }
        public Params_SetOpticalDvi_req(string input_type,string status_p)
        {
            input = input_type;
            status = status_p;

        }
        public Params_SetOpticalDvi_req(Params_SetOpticalDvi_req obj)
        {
            input = obj.input;

        }
        #endregion

        // public int addr { get; set; }
        public string input = "dvi1";
        public string status = "disble";



    }



    public class SetOpticalDvi_req
    {
        #region Constructors
        public SetOpticalDvi_req(string n_method, string jsonver, int nid, Params_SetOpticalDvi_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_SetOpticalDvi_req(parm);

        }

        public SetOpticalDvi_req(string n_method, string jsonver, int nid, string input_type,string status)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_SetOpticalDvi_req(input_type, status);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_SetOpticalDvi_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }





    #endregion


    #region Set Fpga Reg
    public class Params_Setfpga_reg_obj_req
    {
        #region Constructors
        public Params_Setfpga_reg_obj_req()
        {
            
        }

        public Params_Setfpga_reg_obj_req(int addr_p, int val)
        {
            addr = addr_p;
            data = val;
            


        }

        public Params_Setfpga_reg_obj_req(Params_Setfpga_reg_obj_req obj)
        {
            addr = obj.addr;
            data = obj.data;
            
        }

        #endregion

        public int addr { get; set; }
        public int data { get; set; }
        
    }
    public class SetFpgaReg_obj_req
    {
        #region
        public SetFpgaReg_obj_req(string n_method, string jsonver, int nid, Params_Setfpga_reg_obj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_Setfpga_reg_obj_req(prm);

        }

        public SetFpgaReg_obj_req(string n_method, string jsonver, int nid, int addr, int val)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_Setfpga_reg_obj_req(addr, val);
        }

        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_Setfpga_reg_obj_req @params { get; set; }
        public int id { get; set; }
    }


    #endregion


    #region Get Fpga Reg


    public class Params_fpga_reg_req
    {
        #region Constructors
        public Params_fpga_reg_req()
        {
            addr = string.Empty;
        }
        public Params_fpga_reg_req(string addr_p)
        {
            addr = addr_p;
            
        }
        public Params_fpga_reg_req(Params_fpga_reg_req obj)
        {
            addr = obj.addr;
        }
        #endregion

        // public int addr { get; set; }
        public string addr = string.Empty;

    }



    public class Getfpga_reg_req
    {
        #region Constructors
        public Getfpga_reg_req(string n_method, string jsonver, int nid, Params_fpga_reg_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_fpga_reg_req(parm);

        }

        public Getfpga_reg_req(string n_method, string jsonver, int nid, string addr)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_fpga_reg_req(addr);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_fpga_reg_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }





    #endregion


    #region Get Bid 


    public class Params_GetBid_req
    {
        #region Constructors
        public Params_GetBid_req()
        {
            device = "mercury";
        }
        public Params_GetBid_req(string bid,string field_p)
        {
            device = bid;
            field = field_p;
        }
        public Params_GetBid_req(Params_GetBid_req obj)
        {
            device = obj.device;
            field = obj.field;

        }
        #endregion

        // public int addr { get; set; }
        public string device = "mercury";
        public string field = String.Empty;

    }



    public class GetBid_req
    {
        #region Constructors
        public GetBid_req(string n_method, string jsonver, int nid, Params_GetBid_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_GetBid_req(parm);

        }

        public GetBid_req(string n_method, string jsonver, int nid, string bid,string field)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_GetBid_req(bid,field);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_GetBid_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }


   


    #endregion

    #region Get fmw update Staus


    public class Params_Getfmw_updateStatus_req
    {
        #region Constructors
        public Params_Getfmw_updateStatus_req()
        {
            taskId = "1";
        }
        public Params_Getfmw_updateStatus_req(string rpcId)
        {
            taskId = rpcId;
            
        }
        public Params_Getfmw_updateStatus_req(Params_Getfmw_updateStatus_req obj)
        {
            taskId = obj.taskId;
            

        }
        #endregion

        // public int addr { get; set; }
        public string taskId = "1";
        

    }



    public class Getfmw_updateStatus_req
    {
        #region Constructors
        public Getfmw_updateStatus_req(string n_method, string jsonver, int nid, Params_Getfmw_updateStatus_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_Getfmw_updateStatus_req(parm);

        }

        public Getfmw_updateStatus_req(string n_method, string jsonver, int nid, string rpcid)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_Getfmw_updateStatus_req(rpcid);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_Getfmw_updateStatus_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }





    #endregion


    #region Set Bid
    public class Params_SetBid_obj_req
    {
        #region Constructors
        public Params_SetBid_obj_req()
        {
            device = string.Empty;
            field = string.Empty;
        }

        public Params_SetBid_obj_req(string device_p, string field_p, string val)
        {
            device = device_p;
            field = field_p;
            value = val;


        }

        public Params_SetBid_obj_req(Params_SetBid_obj_req obj)
        {
            device = obj.device;
            field = obj.field;
            value = obj.value;
        }

        #endregion

        public string device { get; set; }
        public string field { get; set; }
        public string value { get; set; }
    }
    public class SetBid_obj_req
    {
        #region
        public SetBid_obj_req(string n_method, string jsonver, int nid, Params_SetBid_obj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_SetBid_obj_req(prm);

        }

        public SetBid_obj_req(string n_method, string jsonver, int nid, string device, string field, string val)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_SetBid_obj_req(device, field, val);
        }

        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_SetBid_obj_req @params { get; set; }
        public int id { get; set; }
    }


    #endregion


    #region Set EDID
    public class Params_SetEDIT_obj_req
    {
        #region Constructors
        public Params_SetEDIT_obj_req()
        {
            input = string.Empty;
            edidtype = string.Empty;
            filepath = string.Empty;
        }

        public Params_SetEDIT_obj_req(string input_p, string edidtype_p, string filepath_p)
        {
            input = input_p;
            edidtype = edidtype_p;
            filepath = filepath_p;


        }

        public Params_SetEDIT_obj_req(Params_SetEDIT_obj_req obj)
        {
            input = obj.input;
            edidtype = obj.edidtype;
            filepath = obj.filepath;
        }

        #endregion

        public string input { get; set; }
        public string edidtype { get; set; }
        public string filepath { get; set; }
    }
    
    public class SetEDID_obj_req
    {
        #region
        public SetEDID_obj_req(string n_method, string jsonver, int nid, Params_SetEDIT_obj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_SetEDIT_obj_req(prm);

        }

        public SetEDID_obj_req(string n_method, string jsonver, int nid, string input_p, string type, string path_p)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_SetEDIT_obj_req(input_p, type, path_p);
        }

        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_SetEDIT_obj_req @params { get; set; }
        public int id { get; set; }
    }


    #endregion






    #region Verify EDID
    public class Params_VerifyEDIT_obj_req
    {
        #region Constructors
        public Params_VerifyEDIT_obj_req()
        {
            input = string.Empty;
           
            filepath = string.Empty;
        }

        public Params_VerifyEDIT_obj_req(string input_p, string filepath_p)
        {
            input = input_p;
            filepath = filepath_p;


        }

        public Params_VerifyEDIT_obj_req(Params_VerifyEDIT_obj_req obj)
        {
            input = obj.input;
            filepath = obj.filepath;
        }

        #endregion

        public string input { get; set; }
        public string filepath { get; set; }
    }

    public class VerifyEDID_obj_req
    {
        #region
        public VerifyEDID_obj_req(string n_method, string jsonver, int nid, Params_VerifyEDIT_obj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_VerifyEDIT_obj_req(prm);

        }

        public VerifyEDID_obj_req(string n_method, string jsonver, int nid, string input_p, string path_p)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_VerifyEDIT_obj_req(input_p, path_p);
        }

        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_VerifyEDIT_obj_req @params { get; set; }
        public int id { get; set; }
    }


    #endregion

    #region Test Memory
  
    public class TestMemory_obj_req
    {
        #region
       

        public TestMemory_obj_req(string n_method, string jsonver, int nid)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            
        }

        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        
        public int id { get; set; }
    }


    #endregion

    #region Update Fmw
    public class Params_UpdateFmw_obj_req
    {
        #region Constructors
        public Params_UpdateFmw_obj_req()
        {
            
            module = string.Empty;
            filepath = string.Empty;
        }

        public Params_UpdateFmw_obj_req(string fmwtype_p, string filepath_p,string bankinfo)
        {
            module = fmwtype_p;
            filepath = filepath_p;
            bank = bankinfo;
        }

        public Params_UpdateFmw_obj_req(Params_UpdateFmw_obj_req obj)
        {
            module = obj.module;
            filepath = obj.filepath;
        }

        #endregion

        public string module { get; set; }
        public string filepath { get; set; }
        public string bank { get; set; }
    }

    public class UpdateFmw_obj_req
    {
        #region
        public UpdateFmw_obj_req(string n_method, string jsonver, int nid, Params_UpdateFmw_obj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_UpdateFmw_obj_req(prm);

        }

        public UpdateFmw_obj_req(string n_method, string jsonver, int nid, string type, string path_p,string bankInfo)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_UpdateFmw_obj_req(type, path_p, bankInfo);
        }

        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_UpdateFmw_obj_req @params { get; set; }
        public int id { get; set; }
    }


    #endregion


    #region Get Color Sensor Intigration time
    public class Params_Col_Sensor_intigrationTime_req
    {
        #region Constructors
        public Params_Col_Sensor_intigrationTime_req()
        {
            sensor = 1;
        }
        public Params_Col_Sensor_intigrationTime_req(int n_sensor)
        {
            sensor = n_sensor;
        }
        public Params_Col_Sensor_intigrationTime_req(Params_Col_Sensor_intigrationTime_req obj)
        {
            sensor = obj.sensor;
        }
        #endregion

        // public int addr { get; set; }
        public int sensor = 1;
    }

    public class GetColorSensorIntigrationTime_req
    {
        #region Constructors
        public GetColorSensorIntigrationTime_req(string n_method, string jsonver, int nid, Params_Col_Sensor_intigrationTime_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_Col_Sensor_intigrationTime_req(parm);

        }

        public GetColorSensorIntigrationTime_req(string n_method, string jsonver, int nid, int n_sensor)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_Col_Sensor_intigrationTime_req(n_sensor);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_Col_Sensor_intigrationTime_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }
    #endregion


    #region Get Color Sensor Intigration time
    public class Params_Col_Sensor_Measurment_req
    {
        #region Constructors
        public Params_Col_Sensor_Measurment_req()
        {
            sensor = 1;
            strobe = "red";
        }
        public Params_Col_Sensor_Measurment_req(int n_sensor,string n_col)
        {
            sensor = n_sensor;
            strobe = n_col;
        }
        public Params_Col_Sensor_Measurment_req(Params_Col_Sensor_Measurment_req obj)
        {
            strobe = obj.strobe;
            sensor = obj.sensor;
        }
        #endregion

        public int sensor { get; set; }
        public string strobe = "red";
    }

    public class GetColorSensorMeasurement_req
    {
        #region Constructors
        public GetColorSensorMeasurement_req(string n_method, string jsonver, int nid, Params_Col_Sensor_Measurment_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_Col_Sensor_Measurment_req(parm);

        }

        public GetColorSensorMeasurement_req(string n_method, string jsonver, int nid,int sensor, string n_Col)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_Col_Sensor_Measurment_req(sensor,n_Col);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_Col_Sensor_Measurment_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }
    #endregion

    #region Get CS raw Count
    public class Params_CS_Raw_count_req
    {
        #region Constructors
        public Params_CS_Raw_count_req()
        {
            chk_param = 0;
        }
        public Params_CS_Raw_count_req(int chk_param_p)
        {
            chk_param = chk_param_p;
        }
        public Params_CS_Raw_count_req(Params_CS_Raw_count_req obj)
        {
            chk_param = obj.chk_param;
        }
        #endregion

        // public int addr { get; set; }
        public int chk_param = 0;
    }

    public class GetCS_Raw_count_req
    {
        #region Constructors
        public GetCS_Raw_count_req(string n_method, string jsonver, int nid, Params_CS_Raw_count_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_CS_Raw_count_req(parm);

        }

        public GetCS_Raw_count_req(string n_method, string jsonver, int nid, int chk_param_p)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_CS_Raw_count_req(chk_param_p);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_CS_Raw_count_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }
    #endregion

    #region Get CS raw Count
    public class Params_GetCS_backLIght_req
    {
        #region Constructors
        public Params_GetCS_backLIght_req()
        {
            update = 0;
        }
        public Params_GetCS_backLIght_req(int update_p)
        {
            update = update_p;
        }
        public Params_GetCS_backLIght_req(Params_GetCS_backLIght_req obj)
        {
            update = obj.update;
        }
        #endregion

        // public int addr { get; set; }
        public int update = 0;
    }

    public class GetCS_backLIght_req
    {
        #region Constructors
        public GetCS_backLIght_req(string n_method, string jsonver, int nid, Params_GetCS_backLIght_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_GetCS_backLIght_req(parm);

        }

        public GetCS_backLIght_req(string n_method, string jsonver, int nid, int update_p)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_GetCS_backLIght_req(update_p);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_GetCS_backLIght_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }
    #endregion


    #region Get Fan Speed
    public class Params_Temprature_req
    {
        #region Constructors
        public Params_Temprature_req()
        {
            type = "mercury";
        }
        public Params_Temprature_req(string tempsensor)
        {
            type = tempsensor;
        }
        public Params_Temprature_req(Params_Temprature_req obj)
        {
            type = obj.type;
        }
        #endregion

        // public int addr { get; set; }
        public string type = "mercury";
    }

    public class GetTemprature_req
    {
        #region Constructors
        public GetTemprature_req(string n_method, string jsonver, int nid, Params_Temprature_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_Temprature_req(parm);

        }

        public GetTemprature_req(string n_method, string jsonver, int nid, string tempsensor)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_Temprature_req(tempsensor);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_Temprature_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }
    #endregion

    #region Source Set req
    public class Params_SourceSelectSet_req
    {
        #region Constructors
        public Params_SourceSelectSet_req()
        {
            addr = 0;
            source = "dvi";
        }

        public Params_SourceSelectSet_req(int ar,string n_source)
        {
            addr = ar;
            source = n_source;
        }

        public Params_SourceSelectSet_req(Params_SourceSelectSet_req obj)
        {
            addr = obj.addr;
            source = obj.source;
        }

        
        #endregion

        public int addr { get; set; }
        public string source { get; set; }
    }


    public class SourceSetobj_req
    {

        #region
        public SourceSetobj_req(string n_method, string jsonver, int nid, Params_SourceSelectSet_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_SourceSelectSet_req(prm);
            
        }


        public SourceSetobj_req(string n_method, string jsonver, int nid, string n_source, int ar)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_SourceSelectSet_req(ar, n_source);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_SourceSelectSet_req @params { get; set; }
        public int id { get; set; }
    }

#endregion

    #region Set ops Operation
    public class Params_OpsSetOperationobj_req
    {
        #region Constructors
        public Params_OpsSetOperationobj_req()
        {
            state = "on";
            

        }

        public Params_OpsSetOperationobj_req(string state_p)
        {
            state = state_p;
            
        }

        public Params_OpsSetOperationobj_req(Params_OpsSetOperationobj_req obj)
        {
            state = obj.state;
            
        }


        #endregion

        public string state { get; set; }
        
    }


    public class OpsSetOperationobj_req
    {

        #region
        public OpsSetOperationobj_req(string n_method, string jsonver, int nid, Params_OpsSetOperationobj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_OpsSetOperationobj_req(prm);

        }


        public OpsSetOperationobj_req(string n_method, string jsonver, int nid, string state_p)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_OpsSetOperationobj_req(state_p);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_OpsSetOperationobj_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    #region Set user target control params
    public class Params_SetUserTargetCOntrol_paramsobj_req
    {
        #region Constructors
        public Params_SetUserTargetCOntrol_paramsobj_req()
        {
            colortemp = 3000;
            locusOffset = 0;
            gammaFactor = "gamma2_2";
            brightness = 400;



        }

        public Params_SetUserTargetCOntrol_paramsobj_req(int colortemp_p, double locusOffset_p, string gammaFactor_p,int brightness_p)
        {
            colortemp = colortemp_p;
            locusOffset = locusOffset_p;
            gammaFactor = gammaFactor_p;
            brightness = brightness_p;
        }

        public Params_SetUserTargetCOntrol_paramsobj_req(Params_SetUserTargetCOntrol_paramsobj_req obj)
        {
            colortemp = obj.colortemp;
            locusOffset = obj.locusOffset;
            colortemp = obj.colortemp;
            gammaFactor = obj.gammaFactor;
            brightness = obj.brightness;

        }


        #endregion

        public int colortemp { get; set; }
        public double locusOffset { get; set; }
        public string gammaFactor { get; set; }
        public int brightness { get; set; }

    }


    public class SetUserTargetCOntrol_paramsobj_req
    {

        #region
        public SetUserTargetCOntrol_paramsobj_req(string n_method, string jsonver, int nid, Params_SetUserTargetCOntrol_paramsobj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_SetUserTargetCOntrol_paramsobj_req(prm);

        }


        public SetUserTargetCOntrol_paramsobj_req(string n_method, string jsonver, int nid, int colortemp_p, double locusOffset_p, string gammaFactor_p, int brightness_p)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_SetUserTargetCOntrol_paramsobj_req(colortemp_p, locusOffset_p, gammaFactor_p, brightness_p);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_SetUserTargetCOntrol_paramsobj_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion


    #region Set White Balance
    public class Params_SetWhiteBalanceobj_req
    {
        #region Constructors
        public Params_SetWhiteBalanceobj_req()
        {
            
            delta_x = 1;
            delta_y = 1;
            delta_Y = 1;


        }

        public Params_SetWhiteBalanceobj_req(double delta_x_p, double delta_y_p, double delta_z_p)
        {
            delta_x = delta_x_p;
            delta_y = delta_y_p;
            delta_Y = delta_z_p;
            
        }

        public Params_SetWhiteBalanceobj_req(Params_SetWhiteBalanceobj_req obj)
        {
            delta_x = obj.delta_x;
            delta_y = obj.delta_y;
            delta_Y = obj.delta_Y;
        }

        #endregion

        public double delta_x { get; set; }
        public double delta_y { get; set; }
        public double delta_Y { get; set; }
        

    }


    public class SetWhiteBalanceobj_req
    {

        #region
        public SetWhiteBalanceobj_req(string n_method, string jsonver, int nid, Params_SetWhiteBalanceobj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_SetWhiteBalanceobj_req(prm);

        }


        public SetWhiteBalanceobj_req(string n_method, string jsonver, int nid, double delta_x_p, double delta_y_p, double delta_z_p)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_SetWhiteBalanceobj_req(delta_x_p, delta_y_p, delta_z_p);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_SetWhiteBalanceobj_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    #region Fan Speed Set
    public class Params_FanSpeedSet_req
    {
        #region Constructors
        public Params_FanSpeedSet_req()
        {
            fan = "fan1";
            speed = 1000;
            
        }

        public Params_FanSpeedSet_req(int n_rpm, string whichfan)
        {
            fan = whichfan;
            speed = n_rpm;
        }

        public Params_FanSpeedSet_req(Params_FanSpeedSet_req obj)
        {
            fan = obj.fan;
            speed = obj.speed;
        }


        #endregion
               
        public string fan { get; set; }
        public int speed { get; set; }
    }


    public class FanSpeedSetobj_req
    {

        #region
        public FanSpeedSetobj_req(string n_method, string jsonver, int nid, Params_FanSpeedSet_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_FanSpeedSet_req(prm);

        }


        public FanSpeedSetobj_req(string n_method, string jsonver, int nid, string whichfan, int speed)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_FanSpeedSet_req(speed, whichfan);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_FanSpeedSet_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    #region Fan Speed Set
    public class Params_IntigrationTimeSet_req
    {
        #region Constructors
        public Params_IntigrationTimeSet_req()
        {
            sensor = 1;
            time = 1000;

        }

        public Params_IntigrationTimeSet_req(int n_Time, int whichSensor)
        {
            sensor = whichSensor;
            time = n_Time;
        }

        public Params_IntigrationTimeSet_req(Params_IntigrationTimeSet_req obj)
        {
            sensor = obj.sensor;
            time = obj.time;
        }


        #endregion

        public int sensor { get; set; }
        public int time { get; set; }
    }


    public class Pic_IntigrationTimeSetobj_req
    {

        #region
        public Pic_IntigrationTimeSetobj_req(string n_method, string jsonver, int nid, Params_IntigrationTimeSet_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_IntigrationTimeSet_req(prm);

        }


        public Pic_IntigrationTimeSetobj_req(string n_method, string jsonver, int nid, int whichSensor, int time)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_IntigrationTimeSet_req(time, whichSensor);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_IntigrationTimeSet_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion


    #region Blanking offset Set
    public class Params_BlankingOffsetSet_req
    {
        #region Constructors
        public Params_BlankingOffsetSet_req()
        {
            value = 1;

        }

        public Params_BlankingOffsetSet_req(int offset)
        {
            value = offset;
        }

        public Params_BlankingOffsetSet_req(Params_BlankingOffsetSet_req obj)
        {

            value = obj.value;
           
        }


        #endregion

        public int value { get; set; }
       
    }


    public class Pic_BlankingOffsetSetobj_req
    {

        #region
        public Pic_BlankingOffsetSetobj_req(string n_method, string jsonver, int nid, Params_BlankingOffsetSet_req obj)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_BlankingOffsetSet_req(obj);

        }


        public Pic_BlankingOffsetSetobj_req(string n_method, string jsonver, int nid, int offset)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_BlankingOffsetSet_req(offset);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_BlankingOffsetSet_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion


    #region Merucry Source Set req
    public class Params_MercurySourceSelectSet_req
    {
        #region Constructors
        public Params_MercurySourceSelectSet_req()
        {
            input = "dvi1";
        }

        public Params_MercurySourceSelectSet_req( string n_source)
        {

            input = n_source;
        }

        public Params_MercurySourceSelectSet_req(Params_MercurySourceSelectSet_req obj)
        {

            input = obj.input;
        }


        #endregion

        public string input { get; set; }
    }


    public class MercurySourceSetobj_req
    {

        #region
        public MercurySourceSetobj_req(string n_method, string jsonver, int nid, Params_MercurySourceSelectSet_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_MercurySourceSelectSet_req(prm);

        }


        public MercurySourceSetobj_req(string n_method, string jsonver, int nid, string n_source)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_MercurySourceSelectSet_req(n_source);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_MercurySourceSelectSet_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    #region Mstar video Set req
    public class Params_mstar_videoSetobj_req
    {
        #region Constructors
        public Params_mstar_videoSetobj_req()
        {
            addr = 0;
            value = 0;


        }

        public Params_mstar_videoSetobj_req(int addr_p,int value_p )
        {

            addr = addr_p;
            value = value_p;
        }

        public Params_mstar_videoSetobj_req(Params_mstar_videoSetobj_req obj)
        {

            addr = obj.addr;
            value = obj.value;

        }


        #endregion

        public int addr { get; set; }
        public int value { get; set; }

    }


    public class mstar_videoSetobj_req
    {

        #region
        public mstar_videoSetobj_req(string n_method, string jsonver, int nid, Params_mstar_videoSetobj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_mstar_videoSetobj_req(prm);

        }


        public mstar_videoSetobj_req(string n_method, string jsonver, int nid, int addr_p, int value_p)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_mstar_videoSetobj_req(addr_p, value_p);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_mstar_videoSetobj_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion


    #region Color Sensor Loop Time
    public class Params_CS_LoopTime_req
    {
        #region Constructors
        public Params_CS_LoopTime_req()
        {
            status = "enable";
            interval = "30";
        }

        public Params_CS_LoopTime_req(string n_status,string interval_p)
        {

            status = n_status;
            interval = interval_p;
        }

        public Params_CS_LoopTime_req(Params_CS_LoopTime_req obj)
        {

            status = obj.status;
            interval = obj.status;
        }


        #endregion

        public string status { get; set; }
        public string interval { get; set; }
    }


    public class CS_LoopTime_req
    {

        #region
        public CS_LoopTime_req(string n_method, string jsonver, int nid, Params_CS_LoopTime_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_CS_LoopTime_req(prm);

        }


        public CS_LoopTime_req(string n_method, string jsonver, int nid, string n_status,string Interval_p)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_CS_LoopTime_req(n_status, Interval_p);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_CS_LoopTime_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion


    #region Calibrate XYZ Device
    public class Params_CS_Calibrate_XYZ_dev_req
    {
        #region Constructors
        public Params_CS_Calibrate_XYZ_dev_req()
        {
            measure = "display";
            
        }

        public Params_CS_Calibrate_XYZ_dev_req(string measure_p)
        {

            measure = measure_p;
            
        }

        public Params_CS_Calibrate_XYZ_dev_req(Params_CS_Calibrate_XYZ_dev_req obj)
        {

            measure = obj.measure;
            
        }


        #endregion

        public string measure { get; set; }
       
    }


    public class CS_Calibrate_XYZ_dev_req
    {

        #region
        public CS_Calibrate_XYZ_dev_req(string n_method, string jsonver, int nid, Params_CS_Calibrate_XYZ_dev_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_CS_Calibrate_XYZ_dev_req(prm);

        }


        public CS_Calibrate_XYZ_dev_req(string n_method, string jsonver, int nid, string measure_p)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_CS_Calibrate_XYZ_dev_req(measure_p);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_CS_Calibrate_XYZ_dev_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    #region External Ref Data
    public class Params_ext_ref_data_req
    {
        #region Constructors
        public Params_ext_ref_data_req()
        {
            
        }

        public Params_ext_ref_data_req(string timeStamp_p,
                                        string ProdData_p,
                                        string ProcessVerion_p,
                                        double red_x_p,
                                        double red_y_p,
                                        double red_z_p,
                                        double green_x_p,
                                        double green_y_p,
                                        double green_z_p,
                                        double blue_x_p,
                                        double blue_y_p,
                                        double blue_z_p)
        {


            timestamp = timeStamp_p;
            proddata = ProdData_p;
            processVer = ProcessVerion_p;
            red_X = red_x_p;
            red_Y = red_y_p;
            red_Z = red_z_p;
            green_X = green_x_p;
            green_Y = green_y_p;
            green_Z = green_z_p;
            blue_X = blue_x_p;
            blue_Y = blue_y_p;
            blue_Z = blue_z_p;
        }

        public Params_ext_ref_data_req(Params_ext_ref_data_req obj)
        {

            timestamp = obj.timestamp;
            proddata = obj.proddata;
            processVer = obj.processVer;
            red_X = obj.red_X;
            red_Y = obj.red_Y;
            red_Z = obj.red_Z;
            green_X = obj.green_X;
            green_Y = obj.green_Y;
            green_Z = obj.green_Z;
            blue_X = obj.blue_X;
            blue_Y = obj.blue_Y;
            blue_Z = obj.blue_Z;
        }


        #endregion

        public string timestamp { get; set; }
        public string proddata { get; set; }
        public string processVer { get; set; }
        public double red_X { get; set; }
        public double red_Y { get; set; }
        public double red_Z { get; set; }
        public double green_X { get; set; }
        public double green_Y { get; set; }
        public double green_Z { get; set; }
        public double blue_X { get; set; }
        public double blue_Y { get; set; }
        public double blue_Z { get; set; }

    }


    public class ext_ref_data_req
    {

        #region
        public ext_ref_data_req(string n_method, string jsonver, int nid, Params_ext_ref_data_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_ext_ref_data_req(prm);

        }


        public ext_ref_data_req(string n_method, string jsonver, int nid, string timeStamp,
                                        string ProdData,
                                        string ProcessVerion,
                                        double red_x,
                                        double red_y,
                                        double red_z,
                                        double green_x,
                                        double green_y,
                                        double green_z,
                                        double blue_x,
                                        double blue_y,
                                        double blue_z)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_ext_ref_data_req(timeStamp,
                                                 ProdData,
                                                 ProcessVerion,
                                                 red_x,
                                                 red_y,
                                                 red_z,
                                                 green_x,
                                                 green_y,
                                                 green_z,
                                                 blue_x,
                                                 blue_y,
                                                 blue_z);


        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_ext_ref_data_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    


    #region WallFull Screan Set
    public class Params_WallScreanSetobj_req
    {
        #region Constructors
        public Params_WallScreanSetobj_req()
        {
            state = "on";
        }

        public Params_WallScreanSetobj_req(string n_state)
        {

            state = n_state;
        }

        public Params_WallScreanSetobj_req(Params_WallScreanSetobj_req obj)
        {

            state = obj.state;
        }


        #endregion

        public string state { get; set; }
    }


    public class WallScreanSetobj_req
    {

        #region
        public WallScreanSetobj_req(string n_method, string jsonver, int nid, Params_WallScreanSetobj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_WallScreanSetobj_req(prm);

        }


        public WallScreanSetobj_req(string n_method, string jsonver, int nid, string n_state)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_WallScreanSetobj_req(n_state);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_WallScreanSetobj_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    #region WallConfig Set
    public class Params_WallConfigSetobjSetobj_req
    {
        #region Constructors
        public Params_WallConfigSetobjSetobj_req()
        {
            mode = "original";
        }

        public Params_WallConfigSetobjSetobj_req(string n_mode)
        {

            mode = n_mode;
        }

        public Params_WallConfigSetobjSetobj_req(Params_WallConfigSetobjSetobj_req obj)
        {

            mode = obj.mode;
        }


        #endregion

        public string mode { get; set; }
    }


    public class WallConfigSetobj_req
    {

        #region
        public WallConfigSetobj_req(string n_method, string jsonver, int nid, Params_WallConfigSetobjSetobj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_WallConfigSetobjSetobj_req(prm);

        }


        public WallConfigSetobj_req(string n_method, string jsonver, int nid, string n_mode)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_WallConfigSetobjSetobj_req(n_mode);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_WallConfigSetobjSetobj_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    #region Pattren  Set
    public class ParamsPattrenSetobj_req
    {
        #region Constructors
        public ParamsPattrenSetobj_req()
        {
            pattern = "grid";
        }

        public ParamsPattrenSetobj_req(string patern_p)
        {

            pattern = patern_p;
        }

        public ParamsPattrenSetobj_req(ParamsPattrenSetobj_req obj)
        {

            pattern = obj.pattern;
        }


        #endregion

        public string pattern { get; set; }
    }


    public class PattrenSetobj_req
    {

        #region
        public PattrenSetobj_req(string n_method, string jsonver, int nid, ParamsPattrenSetobj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new ParamsPattrenSetobj_req(prm);

        }


        public PattrenSetobj_req(string n_method, string jsonver, int nid, string patern_p)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new ParamsPattrenSetobj_req(patern_p);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public ParamsPattrenSetobj_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    
    #region WallConfig Set
    public class Params_cbmModeParamsSetobj_req
    {
        #region Constructors
        public Params_cbmModeParamsSetobj_req()
        {
            backlight = 10;
            backlight = 10;
            rOffset = 10;
            gOffset = 10;
            bOffset = 10;
            rGain = 10;
            gGain = 10;
            bGain = 10;

        }

        public Params_cbmModeParamsSetobj_req(int backlight_P,
            int rOffset_P,
            int gOffset_P,
            int bOffset_P,
            int rGain_P,
            int gGain_P,
            int bGain_P
            )
        {

            backlight = backlight_P;
            rOffset = rOffset_P;
            gOffset = gOffset_P;
            bOffset = bOffset_P;
            rGain = rGain_P;
            gGain = gGain_P;
            bGain = bGain_P;
        }

        public Params_cbmModeParamsSetobj_req(Params_cbmModeParamsSetobj_req obj)
        {

            backlight = obj.backlight;
            rOffset = obj.rOffset;
            gOffset = obj.gOffset;
            bOffset = obj.bOffset;
            rGain = obj.rGain;
            gGain = obj.gGain;
            bGain = obj.bGain;
            
        }


        #endregion
        
        public int backlight { get; set; }
        public int rOffset { get; set; }
        public int gOffset { get; set; }
        public int bOffset { get; set; }
        public int rGain { get; set; }
        public int gGain { get; set; }
        public int bGain { get; set; }
    }


    public class cbmModeParamsSetobj_req
    {

        #region
        public cbmModeParamsSetobj_req(string n_method, string jsonver, int nid, Params_cbmModeParamsSetobj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_cbmModeParamsSetobj_req(prm);

        }


        public cbmModeParamsSetobj_req(string n_method, string jsonver, int nid, int backlight_P,
                                                                                int rOffset_P,
                                                                                int gOffset_P,
                                                                                int bOffset_P,
                                                                                int rGain_P,
                                                                                int gGain_P,
                                                                                int bGain_P
                                                                                )
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_cbmModeParamsSetobj_req(backlight_P, rOffset_P, gOffset_P, bOffset_P, rGain_P, gGain_P, bGain_P);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_cbmModeParamsSetobj_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    #region Background Color Set
    public class Params_BackGround_setobj_req
    {
        #region Constructors
        public Params_BackGround_setobj_req()
        {
            bkgnd = "red";
        }

        public Params_BackGround_setobj_req(string bkColor,int r,int g,int b)
        {

            bkgnd = bkColor;
            red = r;
            green = g;
            blue = b;
        }

        public Params_BackGround_setobj_req(Params_BackGround_setobj_req obj)
        {

            bkgnd = obj.bkgnd;
            red = obj.red;
            green = obj.green;
            blue = obj.blue;

        }


        #endregion

        public string bkgnd { get; set; }
        public int  red { get; set; }
        public int  green { get; set; }
        public int  blue { get; set; }
    }


    public class BackGround_setobj_req
    {

        #region
        public BackGround_setobj_req(string n_method, string jsonver, int nid, Params_BackGround_setobj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_BackGround_setobj_req(prm);

        }


        public BackGround_setobj_req(string n_method, string jsonver, int nid, string bkColor, int r ,int g, int b)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_BackGround_setobj_req(bkColor,r,g,b);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_BackGround_setobj_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    #region Color Sensor Params Set
    public class Params_ColorSensorParams_setobj_req
    {
        #region Constructors
        public Params_ColorSensorParams_setobj_req()
        {
            gain = 1;
            prescale = 1;
            period = "tp_100us";
            pulses = "param_4";
        }

        public Params_ColorSensorParams_setobj_req(int gain_p,int prescaler_p,string period_p,string pulses_p)
        {
            gain = gain_p;
            prescale = prescaler_p;
            period = period_p;
            pulses = pulses_p;

          
        }

        public Params_ColorSensorParams_setobj_req(Params_ColorSensorParams_setobj_req obj)
        {
            gain = obj.gain;
            prescale = obj.prescale;
            period = obj.period;
            pulses = obj.pulses;
        }


        #endregion

        
        public int gain { get; set; }
        public int prescale { get; set; }
        public string period { get; set; }
        public string pulses { get; set; }

    }


    public class ColorSensorParams_setobj_req
    {

        #region
        public ColorSensorParams_setobj_req(string n_method, string jsonver, int nid, Params_ColorSensorParams_setobj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_ColorSensorParams_setobj_req(prm);

        }


        public ColorSensorParams_setobj_req(string n_method, string jsonver, int nid, int gain_p, int prescaler_p, string period_p, string pulses_p)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_ColorSensorParams_setobj_req(gain_p, prescaler_p, period_p, pulses_p);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_ColorSensorParams_setobj_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    #region Reset Field Calibration
    public class Params_Reset_CS_field_Calibration_obj_req
    {
        #region Constructors
        public Params_Reset_CS_field_Calibration_obj_req()
        {
            reset = 1;
            
        }

        public Params_Reset_CS_field_Calibration_obj_req(int reset_p)
        {
            reset = reset_p;
        }

        public Params_Reset_CS_field_Calibration_obj_req(Params_Reset_CS_field_Calibration_obj_req obj)
        {
            reset = obj.reset;
           
        }


        #endregion


        public int reset { get; set; }
       

    }


    public class Reset_CS_field_Calibration_obj_req
    {

        #region
        public Reset_CS_field_Calibration_obj_req(string n_method, string jsonver, int nid, Params_Reset_CS_field_Calibration_obj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_Reset_CS_field_Calibration_obj_req(prm);

        }


        public Reset_CS_field_Calibration_obj_req(string n_method, string jsonver, int nid, int reset_p)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_Reset_CS_field_Calibration_obj_req(reset_p);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_Reset_CS_field_Calibration_obj_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    #region Wall Geometry Get
    public class Params_MercurywallGeometry_get_obj_req
    {
        #region Constructors
        public Params_MercurywallGeometry_get_obj_req()
        {
            input = "dvi1";
        }
        public Params_MercurywallGeometry_get_obj_req(string  input_p)
        {
            input = input_p;
        }
        public Params_MercurywallGeometry_get_obj_req(Params_MercurywallGeometry_get_obj_req obj)
        {
            input = obj.input;
        }
        #endregion

        public string input { get; set; }
    }

    public class MercurywallGeometry_get_obj_req
    {
        #region Constructors
        public MercurywallGeometry_get_obj_req(string n_method, string jsonver, int nid, Params_MercurywallGeometry_get_obj_req parm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            //  @params = new Params_GeneralMerucryGet_req(parm);

        }

        public MercurywallGeometry_get_obj_req(string n_method, string jsonver, int nid, string  input_p)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_MercurywallGeometry_get_obj_req(input_p);

        }

        #endregion


        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_MercurywallGeometry_get_obj_req @params { get; set; } //this is not required for Mercury as of now
        public int id { get; set; }
    }
    #endregion

    #region Wall Geometry Set
    public class Params_MercurywallGeometry_req
    {
        #region Constructors
        public Params_MercurywallGeometry_req()
        {
            x = 0;
            y = 0;
            max_x = 1;
            max_y = 1;
            input = "dvi1";
            mode = "original";

        }

        public Params_MercurywallGeometry_req(int x_p,int y_p,int xMax_p,int yMax_p,string input_p,string mode_p)
        {

            x = x_p;
            y = y_p;
            max_x = xMax_p;
            max_y = yMax_p;
            input = input_p;
            mode = mode_p;


        }

        public Params_MercurywallGeometry_req(Params_MercurywallGeometry_req obj)
        {

            x = obj.x;
            y = obj.y;
            max_x = obj.max_x;
            max_y = obj.max_y;
            input = obj.input;
            mode = obj.mode;
        }

        #endregion

        public int x { get; set; }
        public int y { get; set; }
        public int max_x { get; set; }
        public int max_y { get; set; }
        public string input { get; set; }
        public string mode { get; set; }
    }


    public class MercurywallGeometry_req
    {

        #region Constructor
        public MercurywallGeometry_req(string n_method, string jsonver, int nid, Params_MercurywallGeometry_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_MercurywallGeometry_req(prm);

        }


        public MercurywallGeometry_req(string n_method, string jsonver, int nid, int  x_p,int y_p,int xmax_p,int ymax_p,string input_p,string mode_p)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_MercurywallGeometry_req(x_p,y_p,xmax_p,ymax_p,input_p,mode_p);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_MercurywallGeometry_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    #region AutoSave Set req

    public class Params_AutosaveSet_Obj_req
    {
        #region Constructors
        public Params_AutosaveSet_Obj_req()
        {
            status = "enable";
        }

        public Params_AutosaveSet_Obj_req(string operation_p)
        {

            status = operation_p;
        }

        public Params_AutosaveSet_Obj_req(Params_AutosaveSet_Obj_req obj)
        {

            status = obj.status;
        }


        #endregion


        public string status { get; set; }
    }


    public class AutosaveSet_Obj_req
    {

        #region
        public AutosaveSet_Obj_req(string n_method, string jsonver, int nid, Params_AutosaveSet_Obj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_AutosaveSet_Obj_req(prm);

        }


        public AutosaveSet_Obj_req(string n_method, string jsonver, int nid, string n_state)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_AutosaveSet_Obj_req(n_state);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_AutosaveSet_Obj_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion


    #region Operation change Set req

    public class Params_OperationSet_req
    {
        #region Constructors
        public Params_OperationSet_req()
        {
           
            operation = "on";
        }

        public Params_OperationSet_req(string operation_p)
        {

            operation = operation_p;
        }

        public Params_OperationSet_req(Params_OperationSet_req obj)
        {

            operation = obj.operation;
        }


        #endregion

        
        public string operation{ get; set; }
    }


    public class stateChangeSet_Obj_req
    {

        #region
        public stateChangeSet_Obj_req(string n_method, string jsonver, int nid, Params_OperationSet_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_OperationSet_req(prm);

        }


        public stateChangeSet_Obj_req(string n_method, string jsonver, int nid, string n_state)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_OperationSet_req(n_state);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_OperationSet_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion


    #region Upload tft File

    public class Params_UpLoadTftpFile_Obj_req
    {
        #region Constructors
        public Params_UpLoadTftpFile_Obj_req()
        {
            srcaddr = string.Empty;
            targetpath = string.Empty;
            srcfile = string.Empty;
        }

        public Params_UpLoadTftpFile_Obj_req(string srcaddr_p, string targetpath_p, string srcfile_p)
        {

            srcaddr = srcaddr_p;
            targetpath = targetpath_p;
            srcfile = srcfile_p;

        }

        public Params_UpLoadTftpFile_Obj_req(Params_UpLoadTftpFile_Obj_req obj)
        {

            srcaddr = obj.srcaddr;
            targetpath = obj.targetpath;
            srcfile = obj.srcfile;
        }


        #endregion
 
        public string srcaddr{ get; set; }
        public string targetpath { get; set; }
        public string srcfile { get; set; }
    }


    public class UpLoadTftpFile_Obj_req
    {

        #region
        public UpLoadTftpFile_Obj_req(string n_method, string jsonver, int nid, Params_UpLoadTftpFile_Obj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_UpLoadTftpFile_Obj_req(prm);

        }


        public UpLoadTftpFile_Obj_req(string n_method, string jsonver, int nid, string srcaddr_p, string targetpath_p, string srcfile_p)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_UpLoadTftpFile_Obj_req(srcaddr_p, targetpath_p, srcfile_p);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_UpLoadTftpFile_Obj_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    #region Reboot

    public class Params_Reboot_req
    {
        #region Constructors
        public Params_Reboot_req()
        {
            
        }

        public Params_Reboot_req(int ar, string n_state)
        {
        
        }

        public Params_Reboot_req(Params_Reboot_req obj)
        {
        
        }


        #endregion

        
    }


    public class stateReboot_Obj_req
    {

        #region
        public stateReboot_Obj_req(string n_method, string jsonver, int nid)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            

        }



        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public int id { get; set; }
    }

    #endregion

    #region General Int Set req

    public class Params_General_int_Set_req
    {
        #region Constructors
        public Params_General_int_Set_req()
        {
            addr = 0;
            value = 55;
        }

        public Params_General_int_Set_req(int ar, int n_value)
        {
            addr = ar;
            value = n_value;
        }

        public Params_General_int_Set_req(Params_General_int_Set_req obj)
        {
            addr = obj.addr;
            value = obj.value;
        }


        #endregion

        public int addr { get; set; }
        public int value { get; set; }
    }


    public class General_int_Set_Obj_req
    {

        #region
        public General_int_Set_Obj_req(string n_method, string jsonver, int nid, Params_General_int_Set_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_General_int_Set_req(prm);
        }


        public General_int_Set_Obj_req(string n_method, string jsonver, int nid, int n_value, int ar)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_General_int_Set_req(ar, n_value);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_General_int_Set_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    #region BackLIght Boost Set

    public class Params_BackLightBoost_Set_Obj_req
    {
        #region Constructors
        public Params_BackLightBoost_Set_Obj_req()
        {
            addr = 0;
            state = "on";
        }

        public Params_BackLightBoost_Set_Obj_req(int ar, string n_state)
        {
            addr = ar;
            state = n_state;
        }

        public Params_BackLightBoost_Set_Obj_req(Params_BackLightBoost_Set_Obj_req obj)
        {
            addr = obj.addr;
            state = obj.state;
        }


        #endregion

        public int addr { get; set; }
        public string state
        { get; set; }
    }


    public class BackLightBoost_Set_Obj_req
    {

        #region
        public BackLightBoost_Set_Obj_req(string n_method, string jsonver, int nid, Params_BackLightBoost_Set_Obj_req prm)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_BackLightBoost_Set_Obj_req(prm);
        }


        public BackLightBoost_Set_Obj_req(string n_method, string jsonver, int nid, string n_value, int ar)
        {
            jsonrpc = jsonver;
            method = n_method;
            id = nid;
            @params = new Params_BackLightBoost_Set_Obj_req(ar, n_value);

        }


        #endregion
        public string jsonrpc { get; set; }
        public string method { get; set; }
        public Params_BackLightBoost_Set_Obj_req @params { get; set; }
        public int id { get; set; }
    }

    #endregion

    #region General Responce

    public class Error
    {
        public int code { get; set; }
        public string message { get; set; }
    }

    public class Result
    {
        public string @return { get; set; }
        public string macaddr { get; set; }
        public string value { get; set; }
        public string input { get; set; }
        public string taskId { get; set; }
        public string version { get; set; }
        public string status { get; set; }
        public string taskStatus { get; set; }
        public string data { get; set; }
        public string speed { get; set; }
        public string state { get; set; }
        public int x { get; set; }
        public int y { get; set; }
        public int max_x { get; set; }
        public int max_y { get; set; }
        public string mode { get; set; }
        public string bkgnd { get; set; }
        public int red { get; set; }
        public int green { get; set; }
        public int blue { get; set; }
        public string @string { get; set; }
        public string h_active { get; set; }
        public string v_active { get; set; }
        public string frame_rate { get; set; }
        public string pixel_clock { get; set; }
        public string cmd { get; set; }
        public string mac { get; set; }
        public string ip { get; set; }
        public string netmask { get; set; }
        public string addressing { get; set; }
        public string wallCfgerror { get; set; }
        public string bypass_error { get; set; }
        public string operation { get; set; }
        public int mercury { get; set; }
        public int smps { get; set; }
        public int backlight { get; set; }
        public string memMB { get; set; }
        public string memfreeMB { get; set; }
        public string memusedMB { get; set; }
        public string current { get; set; }
        public string average { get; set; }
        public string uptimeSec { get; set; }
        public string cores { get; set; }
        public string frequency { get; set; }
        public string cs_resp0 { get; set; }
        public string cs_resp1 { get; set; }
        public string red_0 { get; set; }
        public string red_1 { get; set; }
        public string green_0 { get; set; }
        public string green_1 { get; set; }
        public string blue_0 { get; set; }
        public string blue_1 { get; set; }
        public string white_0 { get; set; }
        public string white_1 { get; set; }
        public int gain { get; set; }
        public int prescale { get; set; }
        public string period { get; set; }
        public string pulses { get; set; }
        public string interval { get; set; }
        public double red_X { get; set; }
        public double red_Y { get; set; }
        public double red_Z { get; set; }
        public double green_X { get; set; }
        public double green_Y { get; set; }
        public double green_Z { get; set; }
        public double blue_X { get; set; }
        public double blue_Y { get; set; }
        public double blue_Z { get; set; }
        public string timestamp { get; set; }
        public string proddata { get; set; }
        public string processVer { get; set; }
        public double X { get; set; }
        public double Y { get; set; }
        public double Z { get; set; }
        public int colortemp { get; set; }
        public double locusOffset { get; set; }
        public string gammaFactor { get; set; }
        public int brightness { get; set; }
        public double target_x { get; set; }
        public double target_y { get; set; }
        public double delta_x { get; set; }
        public double delta_y { get; set; }
        public double delta_Y { get; set; }
        public int rOffset { get; set; }
        public int gOffset { get; set; }
        public int bOffset { get; set; }
        public int rGain { get; set; }
        public int gGain { get; set; }
        public int bGain { get; set; }
        public int max_brightness { get; set; }
        public int min_brightness { get; set; }
        public string colorOutOfTolerance { get; set; }
        public string colorNotReachable { get; set; }
        public string brightnessNotReachable { get; set; }
        public string spectralCalibMissing { get; set; }
        public string sensorState { get; set; }
        public string pattern { get; set; }
        public string count { get; set; }
        public string message { get; set; }
        public string ticks { get; set; }
        public string clkstatus { get; set; }
        public string scmstatus { get; set; }
        public string result { get; set; }
        
        
        
        
        
        
    }

    

    public class General_responce
    {
        public string jsonrpc { get; set; }
        public Error error { get; set; }
        public Result result { get; set; }
        public int id { get; set; }
        public DateTime RecvTime = DateTime.Now;
    }

    public class Generic_responce
    {
        public string jsonrpc { get; set; }
        public Error error { get; set; }
        public Result result { get; set; }
        public int id { get; set; }
        public DateTime RecvTime = DateTime.Now;
    }




    public class Error_responce
    {
        public string jsonrpc { get; set; }
        public string result { get; set; }
        public int id { get; set; }
    }

    /*
    public class General_responce
    {
        public string jsonrpc { get; set; }
        public string result { get; set; }
        public int id { get; set; }
    }
     * */
    #endregion

    
}






